package com.java0106;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Java04 {
    public static void main(String[] args) {
        //(4)java.util.Date;
        Date date = new Date();
        System.out.println(date);

        SimpleDateFormat s =new SimpleDateFormat("yyyy-MM-dd,第W周");//为Date时间设置格式：
        String format = s.format(date);//format()
        System.out.println(format);
    }
}
